using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_CurrencyRateMap : EntityTypeConfiguration<t_CurrencyRate>
    {
        public t_CurrencyRateMap()
        {
            // Primary Key
            this.HasKey(t => t.FInterID);

            // Properties
            // Table & Column Mappings
            this.ToTable("t_CurrencyRate");
            this.Property(t => t.FInterID).HasColumnName("FInterID");
            this.Property(t => t.FAdjustID).HasColumnName("FAdjustID");
            this.Property(t => t.FCurrencyID).HasColumnName("FCurrencyID");
            this.Property(t => t.FYear).HasColumnName("FYear");
            this.Property(t => t.FPeriod).HasColumnName("FPeriod");
            this.Property(t => t.FCurRate).HasColumnName("FCurRate");
            this.Property(t => t.FAdjustRate).HasColumnName("FAdjustRate");
            this.Property(t => t.FSource).HasColumnName("FSource");
        }
    }
}
